from django.db import models

class Section(models.Model):
	name = models.CharField (max_length=50)
	def __unicode__(self):
		return self.name
	class Meta:
		ordering = ['name']
	class Admin:
		pass
	_order = 1


class Question(models.Model):
	question = models.CharField(max_length=255)
	answer = models.TextField ()
	section= models.ForeignKey (Section)
	def __unicode__(self):
		return self.question
	class Meta:
		pass
		#ordering = ['section__name']
	class Admin:
		list_display = ('section', 'question', 'answer')
	_order = 2

		
